c649a54f2277ce6a56b4f8824f0b67494f57a1fa,plugins/groovy/src/org/jetbrains/plugins/groovy/lang/editor/actions/GroovyEnterHandler.java,GroovyEnterHandler,handleInString,#Editor#number#DataContext#EditorActionHandler#,264

Before Change


          document.insertString(parentRange.getStartOffset(), "\"\"");
          editor.getCaretModel().moveToOffset(caretOffset + 2);
        }
        EditorModificationUtil.insertStringAtCaret(editor, "\n");
        if (rightFromDollar) {
          editor.getCaretModel().moveCaretRelatively(1, 0, false, false, true);
        }

After Change


          convertEndToMultiline(parent.getTextRange().getEndOffset(), document, fileText, '"');
          document.insertString(parentRange.getStartOffset(), "\"\"");
          caretModel.moveToOffset(caretOffset + 2);
          EditorModificationUtil.insertStringAtCaret(editor, "\n");
          caretModel.moveCaretRelatively(1, 0, false, false, true);
        }
        else if (isSlashBeforeCaret(caretOffset, fileText)) {
          EditorModificationUtil.insertStringAtCaret(editor, "\n");
        }
        else {
          EditorModificationUtil.insertStringAtCaret(editor, "\"+");
          originalHandler.execute(editor, dataContext);
          EditorModificationUtil.insertStringAtCaret(editor, "\"");
          PsiDocumentManager.getInstance(project).commitDocument(document);
          CodeStyleManager.getInstance(project).reformatRange(file, caretOffset, caretModel.getOffset());
        }